package com.liao.badminton.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.liao.badminton.code.PageParam;
import com.liao.badminton.code.ProjectException;
import com.liao.badminton.code.ResponseRest;
import com.liao.badminton.dto.SystemRoleMenuDto;
import com.liao.badminton.entity.SystemRoleMenu;

import java.util.Set;

/**
 * @author liaocheng
 * @date 2023-11-22
 * description:角色和菜单关联表
 */
public interface SystemRoleMenuService extends IService<SystemRoleMenu> {
    /**
     * 新增
     */
    ResponseRest saveSystemRoleMenu(SystemRoleMenuDto param) throws ProjectException;

    /**
     * 删除
     */
    ResponseRest deletesSystemRoleMenu(SystemRoleMenuDto param) throws ProjectException;

    /**
     * 修改
     */
    ResponseRest updateSystemRoleMenu(SystemRoleMenuDto param) throws ProjectException;

    /**
     * 查询详情
     */
    ResponseRest findDetail(SystemRoleMenuDto param) throws ProjectException;

    /**
     * 查询列表
     */
    ResponseRest findSystemRoleMenuByPageParam(PageParam<SystemRoleMenuDto> PageParam) throws ProjectException;


    Set<Long> findRoleIdsByMenuId(Long menuId);
}
